@echo off
if not exist "..\ga_sa\omp\Release\islsp_ga_sa_omp.exe" (echo ERROR: ..\ga_sa\omp\Release\islsp_ga_sa_omp.exe not found
echo Please build project islsp_ga_sa_omp
goto :eof
)

for %%R in (2222) do for %%G in (3) do (call :run %%R %%G)
goto :eof

:run
echo randseed: %1, cpu: %2
if not exist "..\res\problem5x5\%1" @mkdir "..\res\problem5x5\%1"
set OMP_NUM_THREADS=%2
"..\ga_sa\omp\Release\islsp_ga_sa_omp.exe" %1 "ga_sa_weak.xml" > "..\res\problem5x5\%1\%2.ga_sa.omp.txt"
